<template>

  <div class="app-container">

    <h2 style="text-align: center;">发布新课程</h2>

    <el-steps :active="2" process-status="wait" align-center style="margin-bottom: 40px;">
      <el-step title="填写基本信息"/>
      <el-step title="发布视频"/>
      <el-step title="最终发布"/>
    </el-steps>

    <div>
        <el-button @click="previous">上一步</el-button>
        <el-button :disabled="saveBtnDisabled" type="primary" @click="next">下一步</el-button>
    </div>
  </div>
</template>
<script>

export default {
    data(){
        return {
            videoId:''
        }
    },
   created() {
        //获取路由的id值
        if(this.$route.params && this.$route.params.id) {
            this.videoId = this.$route.params.id
           
        }
    },
    methods:{
          previous() {
            this.$router.push({path:'/vod/save/'+this.videoId})
        },
        next() {
            //跳转到第二步
            this.$router.push({path:'/course/publish/'+this.videoId})
        }
    }
}
</script>
